package project

import (
	"context"
	"hotgo/internal/service"

	"hotgo/api/project/v1"
)

func (c *ControllerV1) Create(ctx context.Context, req *v1.CreateReq) (res *v1.CreateRes, err error) {
	res = new(v1.CreateRes)
	res.ProjectCreateModel, err = service.AdminProject().Create(ctx, &req.ProjectCreateInp)
	return
}
